package com.lq.ecoldchain.common

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lq.ecoldchain.R

/*
*2019/1/10 0010  10:07
*function by lq
*/
class PhotoAddRecyclerAdapter(list:List<String>):BaseQuickAdapter<String,BaseViewHolder>(R.layout.add_photo,list){
    override fun convert(helper: BaseViewHolder, item: String) {
        if(!item.isEmpty()){
            val view = helper.getView<ImageView>(R.id.photoAddIv)
            Glide.with(mContext).load(item).into(view)
        }
        helper.addOnClickListener(R.id.introductionLL)
    }

}